#include "ColoredPoint.h"
#include "Triangle.h"

Triangle::Triangle(ColoredPoint p1, ColoredPoint p2, ColoredPoint p3, vec<float,4> normal) :
    point1(p1), point2(p2), point3(p3), normal(normal)
{
}

void Triangle::SetPoint1(ColoredPoint p1)
{
	point1 = p1;
}

void Triangle::SetPoint2(ColoredPoint p2)
{
	point2 = p2;
}

void Triangle::SetPoint3(ColoredPoint p3)
{
	point3 = p3;
}

ColoredPoint Triangle::GetPoint1()
{
	return point1;
}

ColoredPoint Triangle::GetPoint2()
{
	return point2;
}

ColoredPoint Triangle::GetPoint3()
{
	return point3;
}

void Triangle::Draw()
{
}

vec<float, 3> Triangle::GetNormal()
{
	vec<float, 3> n;
	n = normal[0], normal[1], normal[2];
	return n;
}